#ifndef REGISTRATION_H
#define REGISTRATION_H

#include <QPushButton>
#include <QWidget>
#include <QTableWidget>
namespace Ui {
class Registration;
}
struct medicalKind{
  QString name;
  int currentLine;//前方排队人数
  bool isLine;//是否排队中
  QString myNumber;
};
class Registration : public QWidget
{
    Q_OBJECT

public:
    explicit Registration(QRect screenGeometry,QString medicals,QWidget *parent = nullptr);
    ~Registration();

private:
    Ui::Registration *ui;
    QRect screenGeometry;
    void init();
    QPushButton *exit=nullptr;//返回
    void analysisMedical(QString medicals);
    QTableWidget* registTable=nullptr;
    void setRegistTableMode();
    QList<medicalKind> medicals;
    QList<QList<QTableWidgetItem*>>items;
public slots:
    void cellCilcked_slots(int row,int column);
    void receiveServer_slot(int function,QString data);
signals:
    void toServerSend_signals(QString message);
};

#endif // REGISTRATION_H
